//
//  XGL_MessageChatNormalTableViewCell.swift
//  XGamesLive
//
//  Created by ios on 2024/5/28.
//

import UIKit

class XGL_MessageChatNormalTableViewCell: UITableViewCell {
    
    var itemText: UILabel!

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.contentView.backgroundColor = .clear
        self.backgroundColor = .clear
        self.selectionStyle = .none
        self.creatItemView()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    private func creatItemView(){
        self.itemText = UILabel().then({ make in
            make.textColor = UIColor.hexColor("#C2C2C2")
            make.font = UIFont.pingfangSC_Semibold(fontSize: 12.0)
        })
        let line = UIView()
        self.contentView.addSubviews([itemText,line])
        self.itemText.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(2)
        }
        line.snp.makeConstraints { make in
            make.centerX.width.bottom.equalToSuperview()
            make.height.equalTo(0).priority(.high)
            make.top.equalTo(itemText.snp.bottom).offset(2.0)
        }
    }
}
